<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'drinks-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Các thông tin chứa <span class="required">*</span> là bắt buộc.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'type'); ?>
		<?php echo $form->dropDownList($model,'type',CHtml::listData(Supplies::model()->findAllByAttributes(array('type' => 'Thức uống')),'name','name')); ?>
		<?php echo $form->error($model,'type'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'price'); ?>
		<?php echo $form->textField($model,'price'); ?>
		<?php echo $form->error($model,'price'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Thêm' : 'Lưu'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->